export const beforeEach = (to) => {
  console.log('前置导航守卫,to:', to)
  if (to.path === '/login') return

  const token = localStorage.getItem('TOKEN')
  if (!token) return '/login'
  return true
}
export const afterEach = () => {
  console.log('后置导航守卫')
}
